namespace PF {
    export class Node {
        x: number;
        y: number;
        f: number = 0;
        g: number = 0;
        opened: boolean | number;
        closed: boolean;
        tested: boolean;
        walkable: boolean;
        parent: Node;
        constructor(x: number, y: number, walkable: boolean = true) {
            this.x = x;
            this.y = y;
            this.walkable = walkable;
        }
    }
}